package com.liugh.service.zhongche;

import com.baomidou.mybatisplus.plugins.Page;
import com.liugh.entity.User;
import com.liugh.entity.standard.StandardDownload;
import com.liugh.model.DownloadModel;

import java.io.IOException;

/**
 * Created by Fatao on 2018/11/2 .
 */
public interface IStandardDownloadService {

    StandardDownload addStandDownload(StandardDownload standardDownload,User user);

    boolean delStandDownload(int id);

    StandardDownload getStandardDownById(int id);

    Page<StandardDownload> getAllStandardDownloadByUser(Page<StandardDownload> page, User user);

    Page<StandardDownload> getAllStandardDownload(Page<StandardDownload> page);

    StandardDownload refuseDownloadApply(StandardDownload download);

    boolean handleDownloadApply(StandardDownload download) throws IOException;

    StandardDownload updateDownload(StandardDownload download);

    DownloadModel download(int id);
}
